package com.yuan.controller;

import com.yuan.entity.User;

import java.util.ArrayList;
import java.util.List;

import com.yuan.entity.User;

import java.util.ArrayList;
import java.util.List;

import com.yuan.entity.User;

/**
 * @Author：YuanHaHa
 * @Date：2024/7/9 10:29
 */
public class UserController {

    public String add(){
       return "添加人员成功";
    }

    public List<User> getUsers(){
        ArrayList<User> list = new ArrayList<User>();
        return list;
    }

    public void delete(){
        User user = new User();
        if (user != null){
            // 如果user不为null就删除
            System.out.println("删除user成功！");
        }
    }

    public void page(){
        System.out.println("分页查询成功！");
    }

    public void update(){
        System.out.println("修改人员信息成功！");
    }
}
